/**
 * Created by WYH on 17/4/24.
 */
angular.module('rentAuth', []).component(
    'rentAuth',
    {
        templateUrl: 'component/rent/rentAuth/rent_auth.template.html',
        controller: ['$scope', 'Api','Alert', function ($scope, Api,Alert) {

            $scope.submitRentAuth = function (selectRent) {
                Api.setupCompanyLockAuth(selectRent.companyId, true, function (result) {
                    Alert.alertBox('授权成功',function () {
                       return window.location.reload();

                    });
                });

            }
        }]
    }
);